package com.tiyunge.web.controller.common;
import java.util.List;

import com.tiyunge.system.domain.SysGradeOption;
import com.tiyunge.system.service.ISysGradeOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tiyunge.common.core.controller.BaseController;
import com.tiyunge.common.annotation.Anonymous;
import com.tiyunge.common.core.domain.AjaxResult;
/**
 * 前台年级选项 信息操作处理
 *
 * @author yejiayu
 */
@RestController
@RequestMapping("/api/gradeOption")
@Anonymous
public class GradeOptionController extends BaseController{

        @Autowired
        private ISysGradeOptionService gradeOptionService;

        /**
         * 获取前台年级选项列表（只返回启用状态的年级选项）
         */
        @GetMapping("/list")
        public AjaxResult list()
        {
            List<SysGradeOption> list = gradeOptionService.selectGradeOptionListForFront();
            return success(list);

    }
}
